﻿@model PessModel.Rule

@{
    ViewBag.Title = "Edit";
}

<h2>Edit Rule</h2>

<div id="operate" >
    @Html.ActionLink("Back", "Details", new {subjectID=Model.SubjectID })
</div>
@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset class="edit">
        <legend></legend>

        @Html.HiddenFor(model => model.ID)
        @Html.HiddenFor(model=>model.SubjectID)

        <div class="editor-label">
            @*@Html.LabelFor(model => model.SubjectID)*@Topic
        </div>
        <div class="editor-field down">
            @Html.DisplayFor(model => model.Subject.Name)          
        </div>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.Name)*@Name
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </div>

        <div class="editor-label fly">
            @*@Html.LabelFor(model => model.Description)*@Description
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </div>

        <div class="editor-label">
            Score
        </div>
        <div class="editor-field forIE7">
            @Html.EditorFor(model => model.Value)
            @Html.ValidationMessageFor(model => model.Value)
        </div>

        <div class="editor-btn">
            <input type="submit" value="Save" />
        </div>
    </fieldset>
}

